package com.xiao.mall.message.service.dto.front;

import com.xiao.mall.message.domain.enums.NotificationTopic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class UserNotificationTopicFrontDto implements Serializable {

    @ApiModelProperty("主题")
    private NotificationTopic topic;

    @ApiModelProperty("最大的id")
    private Long maxId;

    @ApiModelProperty("最近消息内容")
    private String latestContent = "";

    @ApiModelProperty("数量")
    private Long num;

    public UserNotificationTopicFrontDto(NotificationTopic topic, Long maxId, Long num) {
        this.topic = topic;
        this.maxId = maxId;
        this.num = num;
    }
}
